﻿using System;
using System.Xml.Serialization;

namespace ElectronicCommerce.Framework.Ioc.Interceptor.Configuration
{
    /// <summary>
    /// Parameter Information
    /// </summary>
    public class ParameterInfo
    {
        [XmlAttribute("type")]
        public string MyType
        {
            get;
            set;
        }

        [XmlIgnore]
        public Type ParamType
        {
            get
            {
                return string.IsNullOrEmpty(MyType) ? null : Type.GetType(MyType);
            }
        }

    }
}
